<?php include_once $_SERVER['DOCUMENT_ROOT']."/config.php" ; ?>

<?php

//生成多种tag的组合，供使用





// 生成多种tag的组合，供使用

$wedding_invitation_tag = array(
    "InvitationCard",
    "InvitationLetter",
    "EvenPass",
    "GuestCard",
    "InvitationBrochure",
    "VIPPass",
    "InvitationFlyer",
    "AccessCard"
);



$seal_tag = array(
    "WaxSeal",
    "SealStamp",
    "FireSeal",
    "CeremonialStamp",
    "DocumentSeal",
    "AuthenticatingSeal",
    "HotWaxStamp",
    "EngravedWaxStamp",
    "SealingWaxPress"
);



$wedding_planner_tag = array(
    "CustomWeddingInvitations",
    "WeddingDecorTrends",
    "BestWedding",
    "WeddingPlanner"
);




//根据上面三个数组，循环组合
for ($i = 0; $i < count($wedding_invitation_tag); $i++) {
    for ($j = 0; $j < count($seal_tag); $j++) {
        for ($k = 0; $k < count($wedding_planner_tag); $k++) {
            $_content="#".$wedding_invitation_tag[$i] . " #" . $seal_tag[$j] . " #" . $wedding_planner_tag[$k] . "\n";
            //把数据插入到athlon_content_creator_subdata 的content项
            echo $sql=insert_data($table_prefix."content_creator_subdata",array("ai_content"=>"#".$wedding_invitation_tag[$i] . " #" . $seal_tag[$j] . " #" . $wedding_planner_tag[$k]));
            //$query = mysql_query($sql) or die ("error:".mysql_error());
            echo "<br/>";
        }
    }
}

?>
